package com.example.demo.gateway.core.api;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Auther: miaoguoxin
 * @Date: 2019/3/31 16:24
 * @Description: 只用于网关api缓存的对象
 */
@Data
public class Api implements Serializable {
    /**服务名称*/
    private String serviceId;

    private String patternUrl;
    //并发量
    private int replenishRate = 2;
    //容量
    private int burstCapacity = 5;

    private Integer state;

    private Object object = new Object();

    private String[] strings;
    private List<String> list;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime localDateTime = LocalDateTime.now();
    private Date date = new Date();
}
